import request from '@/utils/request'
/** ********************样品制备列表***********************/
// 样品制备列表
export function sampleItemsPreparationsList(params) {
  return request({
    url: `/sampleItemPre/sampleItemPreparationsList`,
    method: 'get',
    params
  })
}

// 样品编号列表
export function findSampleItemBySampTaskId(params) {
  return request({
    url: `/sampleItemPre/findsSampleItemBySampTaskId`,
    method: 'get',
    params
  })
}

// 样品制备--申请领样
export function samplePrePutIn(data) {
  return request({
    url: `/sampleItemPre/samplePresPutIn`,
    method: 'post',
    data
  })
}

// 修改样品制备
export function updateSampPreEnte(data) {
  return request({
    url: `/sampleItemPre/updateSamplesPreEnte`,
    method: 'post',
    data
  })
}

// 样品制备--查看
export function findSampItemPreVo(params) {
  return request({
    url: `/sampleItemPre/findSampItemsPreVo`,
    method: 'get',
    params
  })
}

// 样品制备--提交
export function submitSamplePre(data) {
  return request({
    url: `/sampleItemPre/submitSamplesPre`,
    method: 'post',
    data
  })
}

// 样品制备--申请入库
export function warehouSamplePre(data) {
  return request({
    url: `/sampleItemPre/warehousSamplePre`,
    method: 'post',
    data
  })
}

// 批量修改样品制备
export function batchSamplePreEnte(data) {
  return request({
    url: `/sampleItemPre/batchSamplesPreEnte`,
    method: 'post',
    data
  })
}

// 样品制备--批量申请领样
export function batchSamplePrePutIn(data) {
  return request({
    url: `/sampleItemPre/batchSamplePresPutIn`,
    method: 'post',
    data
  })
}

// 一键申请入库
export function batchWarehousSampPre(data) {
  return request({
    url: `/sampleItemPre/batchWarehouSampPre`,
    method: 'post',
    data
  })
}

// 样品制备列表(历史)
export function hisSampItemPreparationList(params) {
  return request({
    url: `/sampleItemPre/hisSampItemPreparationsList`,
    method: 'get',
    params
  })
}

/** ********************  样品制备复核列表  ***********************/

// 样品制备复核列表
export function sampleItemChecksList(params) {
  return request({
    url: `/sampleItemPre/sampleItemCheckList`,
    method: 'get',
    params
  })
}

// 样品制备复核--查看
export function findSampChecksBySampTaskId(params) {
  return request({
    url: `/sampleItemPre/findSampCheckBySampTaskId`,
    method: 'get',
    params
  })
}

// 样品制备复核--审核
export function checksSamplPreEnte(data) {
  return request({
    url: `/sampleItemPre/checkSamplPreEnte`,
    method: 'post',
    data
  })
}

// 样品制备复核--批量审核
export function batchsCheckSamplPreEnte(data) {
  return request({
    url: `/sampleItemPre/batchCheckSamplPreEnte`,
    method: 'post',
    data
  })
}

// 一键审核制备样品
export function batchOnesClickAudit(data) {
  return request({
    url: `/sampleItemPre/batchOneClickAudit`,
    method: 'post',
    data
  })
}

// 样品制备复核列表(历史)
export function hisSampleItemsCheckList(params) {
  return request({
    url: `/sampleItemPre/hisSampleItemCheckList`,
    method: 'get',
    params
  })
}

// 样品制备复核--查看(历史)
export function hisSampChecksBySampTaskId(params) {
  return request({
    url: `/sampleItemPre/hisSampCheckBySampTaskId`,
    method: 'get',
    params
  })
}

// 查看样品制备出库情况
export function findSamplePutIn(params) {
  return request({
    url: `/sampleItemPre/findSamplesPutIn`,
    method: 'get',
    params
  })
}

// 查看样品制备出库情况批量
export function plFindSamplePutIn(data) {
  return request({
    url: `/sampleItemPre/plFindSamplesPutIn`,
    method: 'post',
    data
  })
}
